<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>{$pageData.title}</title>
		<link rel="stylesheet" href="__STATIC__/home/js/layui/css/layui.css" />
		<link rel="stylesheet" href="__STATIC__/home/css/admin.css" />
		<script type="text/javascript" src="__STATIC__/home/js/jquery.min.js"></script>
		<script type="text/javascript" src="__STATIC__/home/js/layui/layui.js"></script>
	</head>
	<body class="pd30" data-id="userMailSend"> 
		<div class="center-nav f20">{$pageData.title}</div>
		<div class="center-from b-w">
			<form class="layui-form">
				<ul class="center-from-ul clearfix">
					<li class="width6">
						<div class="layui-form-item">
							<label class="layui-form-label">收件人</label>
							<div class="layui-input-block">
								<input type="text" name="target" autocomplete="off" placeholder="请输入收件人帐号" class="layui-input">
							</div>
						</div>
					</li>
					<li class="width6">
						<div class="layui-form-item">
							<label class="layui-form-label">标题</label>
							<div class="layui-input-block">
								<input type="text" name="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
							</div>
						</div>
					</li>
					<li>
						<div class="layui-form-item">
							<label class="layui-form-label">内容</label>
							<div class="layui-input-block">
								<textarea name="content" id="" cols="50" rows="10"></textarea>
							</div>
						</div>
					</li>
					<li class="width6">
						<div class="layui-form-item">
							<label class="layui-form-label">验证码</label>
							<div class="layui-input-block">
								<input type="text" name="captcha" autocomplete="off" placeholder="请输入验证码" class="layui-input">
							</div>
						</div>
					</li>
					<li class="width6">
						<div class="layui-form-item">
							<label class="layui-form-label"></label>
							<div class="layui-input-block">
								{:captcha_img()}
							</div>
						</div>
					</li>
					<li style="display: none;"><input type="hidden" name="token" value="{$token}"><input type="hidden" name="post_time" value="{$currentTime}"></li>
				</ul>
				<p class="center-from-p"><input type="button" lay-submit="submit" lay-filter="userMailSendSubmit" class="layui-btn layui-bg-orange" value="确定发送"></p>
			</form>
		</div>
		
<script type="text/javascript">
function send(){

	$.ajax({
		'type':'post',
		'dataType':'json',
		'data':$("form[name=postForm]").serialize(),
		'url':"",
		'success':function(data){
			alert(data.msg);
			if(data.code==1){
				location.href='{:url('user.show/mail_out')}';
			}
		}
	});
}

   var mailSendSrc="{:url('user.handle/mail_send')}";
</script> 
<script type="text/javascript" src="__STATIC__/home/js/public.js"></script>
</body>
</html>